package com.naiterui.ehp.bs.patient.controller.inner;

import com.naiterui.ehp.bp.constants.SwaggerTag;
import com.naiterui.ehp.bp.support.exception.PublicService;
import com.naiterui.ehp.bp.support.exception.ResponseVO;
import com.naiterui.ehp.bs.patient.service.ISuperviseService;
import com.naiterui.ehp.bs.patient.vo.SupervisePatientVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <pre>
 * 供监管平台对接内部接口
 * </pre>
 *
 * @author fangguanhong
 * @date 2021/1/13 下午1:41
 * @since 1.0.0
 */
@Api(tags = {SwaggerTag.PATIENT + SwaggerTag.INNER_API + SwaggerTag.SUPERVISION})
@RestController
@RequestMapping("ap/inner/supervise")
public class ApSuperviseController {

    @Autowired
    private ISuperviseService SupervisePatientVO;

    @GetMapping("patient/list")
    public ResponseVO<List<SupervisePatientVO>> getPatientInfo(String start, String end) {
        return PublicService.returnResponseVO(SupervisePatientVO.getPatientInfo(start, end));
    }
}
